import request from '@/utils/request'

// 查询风险管理列表
export function listDealRisk(query) {
  return request({
    url: '/risk/dealRisk/list',
    method: 'get',
    params: query
  })
}

// 查询风险管理统计
export function dealRiskStatistics(query) {
  return request({
    url: '/risk/dealRisk/deal/risk/statistics',
    method: 'get',
    params: query
  })
}
// 查询风险管理统计详情
export function dealRiskStatisticsInfo(query) {
  return request({
    url: '/risk/dealRisk/deal/risk/statistics/info',
    method: 'get',
    params: query
  })
}

// 查询风险管理详细
export function getDealRisk(id) {
  return request({
    url: '/risk/dealRisk/' + id,
    method: 'get'
  })
}

// 保存风险管理
export function saveDealRisk(data) {
  return request({
    url: '/risk/dealRisk/save',
    method: 'post',
    data: data
  })
}

// 删除风险管理
export function delDealRisk(id) {
  return request({
    url: '/risk/dealRisk/' + id,
    method: 'delete'
  })
}

// 导出风险管理
export function exportDealRisk(query) {
  return request({
    url: '/risk/dealRisk/export',
    method: 'get',
    params: query
  })
}
// 风险报告台账
export function getRiskStatisticsReport(query) {
  return request({
    url: '/risk/dealRisk/getRiskStatisticsReport',
    method: 'get',
    params: query
  })
}
// 删除风险处置安排
export function delDealRiskPlan(id) {
  return request({
    url: '/plan/dealRiskPlan/' + id,
    method: 'delete'
  })
}
